package com.fs.base.pojo;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.alibaba.fastjson.annotation.JSONField;
import com.fs.base.annotation.ColumnDesc;

@Entity
@Table(name="s_motion")
@Data@EqualsAndHashCode(callSuper=false)
public class Motion extends PkEntity{
	@ColumnDesc(name="动作编码")
	private String motionCode;
	
	@ColumnDesc(name="动作名称")
	private String motionName;
	
	@ColumnDesc(name="动作图标")
	private String motionIcon;
	
	@ColumnDesc(name="动作排序")
	private Integer motionOrder = 0 ;
	
	@Transient
	private Boolean isChecked = false;
	
	/*此处若是用private，在json格式化时LAY_CHECKED属性名称会变成lAY_CHECKED  ，坑~~~~*/
	@Transient
	@JSONField(name = "LAY_CHECKED") 
	public Boolean LAY_CHECKED = false;
	
	/**
	 * 按钮位置
	 * 按钮显示位置0-列表显示，1-头部显示
	 */
	@Transient
	private Integer location = 0;
	
}